package com.huluobo.a2206parkdemo.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.huluobo.a2206parkdemo.R
import com.huluobo.base.bean.VisitorBeanItem

/**
 *  Created by LC on 2024/10/25.
 */
class VisitorAdapter : BaseQuickAdapter<VisitorBeanItem, BaseViewHolder>(R.layout.item_visitor) {
    override fun convert(helper: BaseViewHolder, item: VisitorBeanItem) {
        helper.setText(R.id.item_visitor_start_time_now_tv, item.visitorStart)
        helper.setText(R.id.item_visitor_end_time_now_tv, item.visitorEnd)
        helper.setText(R.id.item_visitor_desc_now_tv, item.visitorDescribe)
        helper.setText(R.id.item_visitor_car_num_now_tv, item.carNum)
        helper.setText(R.id.item_visitor_time_now_tv, item.visitorTime)
    }
}